// Copyright (c) 2022, hzmes and contributors
// For license information, please see license.txt
/* eslint-disable */

frappe.query_reports["AP Statement"] = {
	"filters": [
		{
			"fieldname": "org",
			"fieldtype": "Select",
			"label": __("Customer"),
			"options": ["UM01"]
		},
		{
			"fieldname": "creation_from",
			"fieldtype": "Date",
			"label": "日期从",
			"default": frappe.datetime.add_days(frappe.datetime.get_today(), -30),
			"width": 0
		},
		{
			"fieldname": "creation_to",
			"fieldtype": "Date",
			"label": "日期到",
			"default": frappe.datetime.add_days(frappe.datetime.get_today(), 1),
			"width": 0
		},
	]
};

// function get_org() {
// 	frappe.db.get_list("SRM Organizations", {filters: {"name": "UM01"}, fields: ["name"], as_list: true}).then((r) => {return r[0]})
// }